PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Control Manager >

Programming With the Mac OS 8.5 Control Manager


SetControl32BitMaximum

Changes the maximum setting of a control and, if appropriate, redraws it accordingly.

pascal void SetControl32BitMaximum (
                     ControlHandle theControl,
                     SInt32 newMaximum);
theControl
A value of type ControlHandle . Pass a handle to the control whose maximum setting you wish to change.
newMaximum
A signed 32-bit integer. Pass a value specifying the new maximum setting of the control. In general, to avoid unpredictable behavior, do not set the maximum control value lower than the current minimum value.

DISCUSSION

Your application may use the SetControl32BitMaximum function to set a 32-bit value as the maximum setting for a control.


SPECIAL CONSIDERATIONS

If your application uses a 32-bit control maximum value, it should not attempt to obtain this value by calling the pre-Mac OS 8.5 function GetControlMaximum or by accessing the contrlMax field of the ControlRecord structure, because the stored 16-bit value will not accurately reflect the current 32-bit control value. Instead, use the function GetControl32BitMaximum .


VERSION NOTES

Available with Mac OS 8.5 and later.


SEE ALSO

"Settings Values for Standard Controls" in Mac OS 8 Control Manager Reference .


© 1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)